package com.example.demo.dao;

import com.example.demo.dto.Log;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

@Repository
public class LogMapper {

    private Integer id = 0;

    private Map<Integer, Log> logData = new HashMap<>();

    public void insert(Log log) {
        logData.put(id, log);
        id++;
    }

    public Collection<Log> getLogData() {
        return logData.values();
    }

}
